package com.example.orderservice.demos.web;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname UserFeginClient
 * @Description
 * @Author caozhenhao001
 * @Date 2024/3/20
 * @Version
 */
@FeignClient("user-service")
public interface UserFeignClient {

    @GetMapping("/user")
    User getUserById(@RequestParam(name = "id") String id);
}
